﻿namespace OnWork.Admin.Util.Base
{
    /// <summary>
    /// 获取注入的废物去
    /// <see cref="https://www.cnblogs.com/xishuai/p/asp-net-core-ioc-di-get-service.html"/>
    /// </summary>
    public static class ServiceLocator
    {
        /// <summary>
        /// 注入的实例
        /// 只能获取AddTransient和AddSingleton注入的对象，而不能获取AddScoped
        /// </summary>
        public static IServiceProvider Instance { get; set; }
    }
}